print('### for list ')
magicians = ['alice', 'david', 'carolina']
for magician in magicians:
    print(magician)
    hello_magician = "Hello " + magician
print("for variable out of scope")
print(hello_magician)
print("I can't wait to see your next trick, " + magician.title())
print("Thank you, everyone. That was a great magic show!")

######### Number List #########

for value in range(1, 5):
    print(value)

print("range step")
numbers = range(2, 12, 2)
for value in numbers:
    print(value)

squares = []
for value in range(1, 5):
    squares.append(value ** 3)
print(squares)

print(min(squares))
print(max(squares))
print(sum(squares))

print("list analyze expression")
squares_2 = [value ** 3 for value in range(1, 5)]
print(squares_2)

print("############# list slit #############")
players = ['charles', 'martina', 'michael', 'florence', 'eli']
print(players[1:3])
print(players[:3])
print(players[1:])
print((players[:]))
print(players[-3:-1])

players_2 = players[:]
players.append("wilfred")
players_2.append('candy')
print(players)
print(players_2)

print("### list slit step !!! ###")
s = 'bicycle'
print(s[::3])
print(s[::-1])
print(s[::-2])

print("############# tuple #################")
dimensions = (200, 50)
print(dimensions[0])
print(dimensions[-1])
for value in dimensions:
    print(value)
